package org.mockfu.junit;

import static org.mockfu.Mocks.*;

import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(Parallelizer.class)
public class ParallelizerTest
{
    private volatile boolean isolated = true;

    @Test @Serialize(around="foo")
    public void testOne()
    throws Exception
    {
        assertThat(isolated);
        Thread.sleep(2000L);
        isolated = false;
    }

    @Test @Serialize(around= {"foo"})
    public void testTwo()
    throws Exception
    {
        assertThat(isolated);
        Thread.sleep(2000L);
        isolated = false;
    }
}
